package com.heatup.apt.model.user;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.heatup.apt.model.order.OrderDetail;
import com.heatup.apt.model.order.OrderInfo;
import com.heatup.apt.model.product.ServicePrice;

/**
 *
 * user_account_consume（消费记录表）：
 *
 */
@TableName("user_account_consume")
public class UserAccountConsume implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**  */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/** userinfo表id */
	@TableField(value = "user_id")
	private Integer userId;

	/** 消费方式1: 购买订单，2:购买会员 */
	@TableField(value = "consume_type")
	private String consumeType;

	/** 消费金额，order_id 订单id */
	@TableField(value = "consume_amt")
	private BigDecimal consumeAmt;

	/** 备注信息 */
	private String remark;

	/** 消费时间 */
	@TableField(value = "create_time")
	private Date createTime;
	
	/** 订单id*/
	@TableField(value = "order_id")
	private Integer orderId;
	
	@TableField(exist=false)
	private OrderInfo orderInfo;
	
	@TableField(exist=false)
	private ServicePrice servicePrice;
	
	@TableField(exist=false)
	private OrderDetail orderDetail;
	
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getConsumeType() {
		return this.consumeType;
	}

	public void setConsumeType(String consumeType) {
		this.consumeType = consumeType;
	}

	public BigDecimal getConsumeAmt() {
		return this.consumeAmt;
	}

	public void setConsumeAmt(BigDecimal consumeAmt) {
		this.consumeAmt = consumeAmt;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public OrderInfo getOrderInfo() {
		return orderInfo;
	}

	public void setOrderInfo(OrderInfo orderInfo) {
		this.orderInfo = orderInfo;
	}

	public ServicePrice getServicePrice() {
		return servicePrice;
	}

	public void setServicePrice(ServicePrice servicePrice) {
		this.servicePrice = servicePrice;
	}

	public OrderDetail getOrderDetail() {
		return orderDetail;
	}

	public void setOrderDetail(OrderDetail orderDetail) {
		this.orderDetail = orderDetail;
	}
	
	
	
	
}
